package com.coda.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 默写结果
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DictationResult implements Serializable {
    //主键
    private Integer id;
    //用户id
    private Integer userId;
    //单词id
    private Integer wordId;
    //默写记录id
    private Integer dictationSessionsId;
    //用户输入的答案
    private String userAnswer;
    //是否正确(0错误，1正确)
    private String isCorrect;
    //创建时间
    @DateTimeFormat
    private LocalDateTime createTime;
}
